import request from '@/utils/request'

export function loginAPI (data) {
  return request({
    method: 'post',
    url: '/sys/login',
    data: data
  })
}
// 获取用户基本资料
export function getUserInfoApi () {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}
// 获取头像
export function getUserDetailByIdApi (id) {
  return request({
    url: `/sys/user/${id}`
  })
}
